#include <iostream>
#include <iomanip>
using namespace std;
#include "EmployeeClass.h"
#include <cstring>

Employee::Employee(const char* firName, const char* lasName, const Date &birDate, const Date &hirDate) : birthDate(birDate),hireDate(hirDate) 
{
	int length = strlen(firName);
	length = (length < 20) ? length : 19;
	strncpy(firstName, firName, length);
	firstName[length] = '\0';
	
	length = (length < 20) ? length : 19;
	strncpy(lastName, lasName, length);
	lastName[length] = '\0';
	
	cout << "Employee object constructor:" << firstName << " " << lastName << "\n";	
}
Employee::~Employee()
{
	cout << "Employee object destructor:" << firstName << " " << lastName << "\n";	
}
void Employee::print() const
{
	cout << "The Employee's name is:" << firstName << " " << lastName << "\n";
	cout << "BirthDay:";
	birthDate.print();
	cout << "HireDay:";
	hireDate.print();
}
